﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration.Configuration;
using System.Linq;
using System.Web;

namespace Hangtot.Main.ViewModels.Megamenu
{
    public class LinkItem
    {
        private int _linkType = 0;
        public string Url { get; set; }
        public string Title { get; set; }
        public string Text { get; set; }

        public LinkItem()
        {
            Url = Title = Text = "";
        }

        public LinkItem(string url)
        {
            Url = Title = Text = url;
        }

        public LinkItem(string url, string text)
        {
            this.Url = url;
            this.Text = text;
        }

        public LinkItem(string url, string text, string title)
        {
            this.Url = url;
            this.Text = text;
            this.Title = title;
        }
        public override string ToString()
        {
            return String.Format("<a href=\"{0}\" title=\"{1}\">{2}</a>", Url, Title, Text);
        }
    }
}